package com.ldzg.blockwatcher.watcher.tron.dto;

import cn.hutool.core.annotation.Alias;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * @author 18310740596@163.com
 * @version V1.0.0
 * @since 2025-07-03 08:42:33
 */
@Getter
@Setter
public class TronTransactionDTO {
    @Alias("transaction_id")
    private String transactionId;

    @Alias("event_name")
    private String eventName;

    @Alias("block_number")
    private Integer blockNumber;

    @Alias("block_timestamp")
    private Long txTimestamp;

    @Alias("result")
    private Result result;

    @Data
    public static class Result {
        @Alias("from")
        private String from;

        @Alias("to")
        private String to;

        @Alias("value")
        private String amount;
    }
}
